<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>活动报名</title>
    <meta charset="utf-8">   
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta content="telephone=no" name="format-detection">
	<style type="text/css">
	*{margin:0;padding:0}
	.content{
		margin: 5%;
		width: 90%
	}
	.content .img,.box{
		width: 90%;
		-webkit-box-shadow: 0px 0px 8px #6B6B6B;
		border-radius: 5px;
		border: 1px solid #6B6B6B;
		background: #fff;
		padding: 5%;
	}
	.mt1{
		margin-top: 20px
	}
	label{
		width: 20%
	}
	select{
		width: 70%;
		height: 3em;
		margin: 10px 0;
	}
	.submit{
		width: 50%;
		margin: 10px 25%;
	}
	</style>    
</head>
<body>
	<div class="content">
	    <img src="__ROOT__/App/Vote/Static/images/top.png" class="img">
	</div>
	<div class='form-login content mt1'>
		<div class="box">
			<p>填写您的真实姓名、电话和楼盘信息，即可报名魅力壹号时尚沙龙活动，名额有限，火速报名哟！</p>
			<div><label>案场：</label>
				<select id="p1">
					<option values="0">请选择P1</option>
					<option values="周六">周六</option>
					<option values="周日">周日</option>
				</select>
			</div>
			<div><label>案场：</label>
				<select id="p2">
					<option values="0">请选择P2</option>
					<option values="骑车">骑车</option>
					<option values="爬山">爬山</option>
				</select>
			</div>
			<img src="__ROOT__/App/Vote/Static/images/an1.png" class="submit">
		</div>
	</div>
</body>
<script charset="utf-8" type="text/javascript" src="__ROOT__/App/Vote/Static/js/jquery-2.1.4.min.js"></script>
<script charset="utf-8" type="text/javascript" src="__ROOT__/App/Vote/Static/js/util.js"></script>
<script type="text/javascript">
	$(".submit").click(function(){
		var p1=$("#p1").val();
		var p2=$("#p2").val();
		if(p1=="请选择P1"){
			Util.info("请选择P1");
			return;
		}
		if(p2=="请选择P2"){
			Util.info("请选择P2");
			return;
		}
		else{
			$.getJSON('__URL__/doAdd', {time:p1,hobby:p2}, function(json){
				if(json.status ==1){
					 location.href=json.url;
				}else{
					Util.showmsg(json.info);
				}
			})
		}
	})
</script>
</html>